import akshare as ak
exchange = "DCE"
dce_daily_bar = ak.get_futures_daily(start_date="20201201", end_date="20210111", market=exchange, index_bar=False)
dce_daily_bar["variety"] = dce_daily_bar["variety"]
dce_daily_bar["symbol"] = dce_daily_bar["symbol"]
dce_daily_bar["vt_symbol"] = dce_daily_bar["symbol"] + "." + exchange
dce_daily_bar["index"] = dce_daily_bar["variety"] + "99." + exchange
print(dce_daily_bar)
print(type(dce_daily_bar))
dce_daily_bar.to_csv(f"D:\\learn_and_test_data\\akshare_{exchange}_daily_bar.csv")
